package com.zefu.controller;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.zefu.entity.Dept;
import com.zefu.service.DeptService;

@Controller
@RequestMapping("/dept")
public class DeptController {
	@Resource
	private DeptService deptService;
	
	@RequestMapping(value="/insert.do",method=RequestMethod.POST)
	public String insert(Dept dept){
		deptService.insertDept(dept);
		return "/main";
	}

}
